<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="author" content="VectorX">
    <meta name="keywords" content="旋转">
    <title>旋转</title>
    <style>
        html {
            perspective: 800px;
        }

        .box {
            width: 320px;
            height: 320px;
            background-image: url("/assets/旋转/an.png");
            margin: 100px auto;
            transition: 1s;
        }

        .box:hover {
            /* transform: rotateY(0.5turn); */
            transform: rotateY(180deg);
            transform: rotateY(180deg) translateZ(200px);
            transform: translateZ(200px) rotateY(180deg);
        }
    </style>
</head>

<body>
    <div class="box"></div>
</body>

</html>